package com.serviceimp;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import com.entity.Lbimagetbale;
import com.entity.Musictbale;
import com.mapper.IMusictbaleMapper;
import com.service.IMusictbaleService;

@Transactional
public class IMusictbaleServiceImp implements IMusictbaleService{

	@Autowired
	public IMusictbaleMapper musictbaleMapper;

	public List<Musictbale> selectMusictbale() {
		
		List<Musictbale> list=musictbaleMapper.selectMusictbale();
		
		return list;
		
	}
 
	public Musictbale queryMusictbale(Musictbale musictbale) {
		
		Musictbale musictbale1=musictbaleMapper.queryMusictbale(musictbale);
		
		return musictbale1;
		
	}

	public int insertMusictbale(Musictbale musictbale) {
		
		int i=musictbaleMapper.insertMusictbale(musictbale);
		
		return i;
		
	}

	public int deleteMusictbale(Musictbale musictbale) {
		
		int i=musictbaleMapper.deleteMusictbale(musictbale);
		
		return i;
		
	}

	public int updateMusictbale(Musictbale musictbale) {
		
		int i=musictbaleMapper.deleteMusictbale(musictbale);
		
		return i;
		
	}
	
}
